﻿// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Oliver Rau" email="mail@olira.de"/>
//     <version>$Revision: 3 $</version>
//     <created>24.08.2006 12:49</created>
// </file>

using System;

namespace ns2kml
{
	/// <summary>
	/// This class describes a GeoPoint with it's latitude, longitude and altitude.
	/// </summary>
	public class GeoPoint
	{
		double longitude;
		double latitude;
		double altitude;
		
		public GeoPoint()
		{
		}
		
		public GeoPoint(GeoPoint source)
		{
			this.latitude  = source.Latitude;
			this.longitude = source.Longitude;
			this.altitude  = source.Altitude;
		}
		
		public GeoPoint(double latitude, double longitude)
		{
			this.longitude = longitude;
			this.latitude = latitude;
			this.altitude = 0.0;
		}
		
		public GeoPoint(double latitude, double longitude, double altitude)
		{
			this.longitude = longitude;
			this.latitude  = latitude;
			this.altitude  = altitude;
		}
		
		public double Latitude {
			get {
				return latitude;
			}
			set {
				latitude = value;
			}
		}
		
		public double Longitude {
			get {
				return longitude;
			}
			set {
				longitude = value;
			}
		}
		
		public double Altitude {
			get {
				return altitude;
			}
			set {
				altitude = value;
			}
		}
	}
}
